package com.teacher.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.notice.NoticeAddDto;
import com.teacher.pojo.dto.notice.NoticeDto;
import com.teacher.pojo.dto.notice.NoticeUpdateDto;
import com.teacher.pojo.entity.Notice;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.vo.notice.NoticeVo;

import java.util.List;

/**
 * <p>
 * 公告 服务类
 * </p>
 *
 * @author jiangzhuohang
 * @since 2024-03-14
 */
public interface INoticeService extends IService<Notice> {

    IPage<NoticeVo> getNoticePageData(NoticeDto pageVo);

    CommonResult addNotice(NoticeAddDto dto);

    CommonResult deleteNotice(List<Long> list);

    CommonResult updateNotice(NoticeUpdateDto updateDto);

    CommonResult getSysNotice();

    void sendCarpoolMessage(String openId,Long relevanceId,String name,String content);

    CommonResult readNotice(Long noticeId);
}
